<template>
  <div>
    <el-button
      type="primary"
      @click="handleCount"
    >默认按钮</el-button>
  </div>
</template>

<script>
import { mapState } from 'vuex'
export default {
  computed: {
    ...mapState(['check'])
  },
  methods: {
    handleCount() {
      this.$store.commit('UPDATE_COUNT', !this.check)
    }
  }
}
</script>
